package video.plugin.app.qukeduo.qingclass.qkd_audio_recorder

import android.os.Looper
import android.util.Log

object ThreadUtils {

    private const val tagThreadUtils="tagThreadUtils"

    fun isMainThread() :Boolean{
        return Looper.myLooper()== Looper.getMainLooper()
    }

    fun logIsMainThread(){
        Log.i(tagThreadUtils,"is main thread ${isMainThread()}")
    }
}